<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>AOI检验数据分析</title>
		<link rel="stylesheet" type="text/css" href="../../css/style.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/list.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/layui.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/jquery-ui.css" /
	</head>
	<body>
		<!-- 蓝色背景区域 -->
		<div class="wrap">
			<!-- 白色可用区域 -->
			<div class="canuse">
				<!------ 位置 ------>
	            <p class="contentText local"><span>位置：质量分析管理 > AOI检验数据分析</span></p>
	            
	            <!------ tab标签 ------>
	            <div class="layui-tab layui-tab-card">
				 <!--   <ul class="layui-tab-title">
					    <li>AOI检测结果</li>
				    </ul>-->
					<div class="layui-tab-content">
					    
					    <div class="layui-tab-item layui-show">
					    	<div class="content">
					    		<!-- 搜索区 -->
					            <div class="search_area">
				                    <h4 class="sel_title"><img src="../../img/list/brand1.png" /><span>AOI检测结果查询条件</span></h4>
				                    <div class="select_area">
				                        <div class="select_text clear">
											<div class="label_input">
					                            <label class="contentText">计划号：</label> <input type="text" name=""  />
											</div>
											<div class="label_input">
					                            <label class="contentText">产品代号：</label> <input type="text" name="" />
				                        	</div>
											<div class="label_input">
											    <label class="contentText">零部件代号：</label> <input type="text" name="" />
											</div>
				                        	<div class="label_input">
					                            <label class="contentText">开始日期：</label> <input type="text" name="" class="dateControl" id="dateControl2" readonly="readonly" />
				                        	</div>
				                        	<div class="label_input">
					                            <label class="contentText">结束日期：</label> <input type="text" name="" class="dateControl" id="dateControl3" readonly="readonly" />
				                        	</div>
				                            <div class="floatLeft">
					                            <button class="btn_search bgd_blue_search">查询</button>
					                            <button class="btn_clear bgd_white_clear">重置</button>
				                            </div>
				                        </div>
				                    </div>
			                        <!--<div class="operate_area">
			                            <input type="radio" name="s_type" onclick="" id="" value="时间统计" checked="checked" />时间统计  
				                            &emsp;<input type="radio" name="s_type" onclick="" id="" value="工单统计" />工单统计
			                        </div>-->
					            </div>
					            <!-- 列表区 -->
					            <div class="show_list">
				                	<div class="title_operate">
				                    	<h4 class="sel_title"><img src="../../img/list/brand1.png" /><span>AOI检测结果列表</span></h4>
				                	</div>
				                	<div class="list_area clear">
					                	<!-- 信息列表区 -->
				                        <div class="info_area">
			                        		<table class="tablelist" border="1" cellspacing="0" cellpadding="0">
				                                <tbody>
				                                    <tr class="menuText list_head">
				                                        <th class="">计划号</th>
														<th class="">产品代号</th>
														<th class="">零部件代号</th>
														<th class="">计划数量</th>
				                                        <th class="">PCB数量（个）</th>
														<th class="">元件数量（个）</th>
														<th class="">OK数量（个）</th>
				                                        <th class="">初判NG数量（个）</th>
														<th class="">确认NG数量（个）</th>
														<th class="">确认NG率（%）</th>
				                                        <th class="">计划状态</th>
				                                    </tr>
				                                </tbody>
				                                <tbody class="tablelist" id="tableflow">
				                                    <tr class="listTableText list_list">
				                                        <td class="cursor editBlue" onclick="testResultShow();">JH20180418</td>
				                                        <td>IMAGE02</td>
				                                        <td>IMAGE0200054</td>
				                                        <td>100</td>
				                                        <td>90</td>
				                                        <td>100</td>
				                                        <td>90</td>
														<td>10</td>
														<td>9</td>
														<td>90.0</td>
				                                        <td>已完工</td>
				                                    </tr>
				                                    <tr class="listTableText list_list">
				                                        <td class="cursor editBlue" onclick="testResultShow();">JH20180418</td>
				                                        <td>IMAGE02</td>
				                                        <td>IMAGE0200054</td>
				                                        <td>100</td>
				                                        <td>90</td>
				                                        <td>100</td>
				                                        <td>90</td>
														<td>10</td>
														<td>9</td>
														<td>90.0</td>
				                                        <td>已完工</td>
				                                    </tr>
				                                    <tr class="listTableText list_list">
				                                        <td class="cursor editBlue" onclick="testResultShow();">JH20180418</td>
				                                        <td>IMAGE02</td>
				                                        <td>IMAGE0200054</td>
				                                        <td>100</td>
				                                        <td>90</td>
				                                        <td>100</td>
				                                        <td>90</td>
														<td>10</td>
														<td>9</td>
														<td>90.0</td>
				                                        <td>已完工</td>
				                                    </tr>
				                                    <tr class="listTableText list_list">
				                                        <td class="cursor editBlue" onclick="testResultShow();">JH20180418</td>
				                                        <td>IMAGE02</td>
				                                        <td>IMAGE0200054</td>
				                                        <td>100</td>
				                                        <td>90</td>
				                                        <td>100</td>
				                                        <td>90</td>
														<td>10</td>
														<td>9</td>
														<td>90.0</td>
				                                        <td>生产中</td>
				                                    </tr>
				                                    <tr class="listTableText list_list">
				                                        <td class="cursor editBlue" onclick="testResultShow();">JH20180418</td>
				                                        <td>IMAGE02</td>
				                                        <td>IMAGE0200054</td>
				                                        <td>100</td>
				                                        <td>90</td>
				                                        <td>100</td>
				                                        <td>90</td>
														<td>10</td>
														<td>9</td>
														<td>90.0</td>
				                                        <td>生产中</td>
				                                    </tr>
				                                </tbody>
				                            </table>
				                        </div>
				                        
				                    </div>
				                </div>
					    	</div>
					    </div>
					</div>
				</div>
			</div>
			<!-- 版尾  -->
			<div class="ending">
				Copyright© 2019-2020 磐基技术有限公司
			</div>
			
			</div>
			
		</div>
	</body>
	<script src="../../js/jquery-3.1.1.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../js/frame/common.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../js/layui.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../js/3rd/jquery-ui.js" type="text/javascript"></script>
	<script type="text/javascript">
		var h = document.documentElement.clientHeight;
		$(".wrap").css("height", h);
		
		// 获取每行 td 的兄弟节点
		$("td").hover(   
			function () {      
				$(this).parent().children().addClass("td_hover");   
			},    
			function () {      
				$(this).parent().children().removeClass("td_hover");   
			}
		);
		
		// 日期控件
		$(function(){
	        $(".dateControl").datepicker({
	        	dateFormat : 'yy-mm-dd',
	            monthNamesShort:["January","February","March","April","May","June", "July","August","September","October","November","December"],
	 		 	changeYear:true,
	 		 	changeMonth:true,
	 		 	showOn:"button",
	 		 	buttonImage:"../../img/button/calendar.png",
	 		 	buttonImageOnly:false
	        });
	     });
		
		
		//点击计划跳转页面
		function testResultShow(){
			window.location.href='AOItestDataAnalysis.html';

		}
		
		//删除规则
	    function delUserGroup() {
			
	        var list = [];
	        var checks = $("input[name='ids']:checked");
	        $.each(checks, function(index, obj) {
	            list.push(obj.id);
	        });
	        if (!list.length > 0) {
	            alert("请选择要删除的内容");
	            return;
	        }
	        if (!confirm("确定要删除所选用户组吗？")) {
	            return;
	        }
	        alert("提醒:删除时，正在使用的用户组将无法删除！");
	        $.ajax({
	            type : 'POST',
	            url : 'userGroup/delUserGroup',
	            data : JSON.stringify(list),
	            contentType : 'application/json; charset=utf-8',
	            async : true,
	            cache : false,
	            success : function(data) {
	                alert(data == 'success' ? "删除成功" : "被使用：无法删除!!!");
	                if (data != 'success') {
	                    return;
	                }
	
	                var current = PageUtils._currentPage['userGroupPage'];
	                PageUtils.pageClick(current, 'userGroupPage');
	            }
	
	        });
	    }
	    
	    layui.use('element', function(){
			var $ = layui.jquery, 
			    element = layui.element; //Tab的切换功能，切换事件监听等，需要依赖element模块
			  
		    //触发事件：添加、删除、切换
		    var active = {
			    tabAdd: function(){
			        //新增一个Tab项
			        element.tabAdd('demo', {
			        	title: '新选项'+ (Math.random()*1000|0), 
			        	content: '内容'+ (Math.random()*1000|0),
			        	id: new Date().getTime() //实际使用一般是规定好的id，这里以时间戳模拟下
			        })
			    },
			    tabChange: function(){
			        //切换到指定Tab项
			        element.tabChange('demo', '22'); //切换到：“用户管理”
			    }
		    };
		  
		    $('.site-demo-active').on('click', function(){
		    	var othis = $(this), 
		        	type = othis.data('type');
		    	active[type] ? active[type].call(this, othis) : '';
		    });
		  
		    //Hash地址的定位
		    var layid = location.hash.replace(/^#test=/, '');
		    element.tabChange('test', layid);
		  
		    element.on('tab(test)', function(elem){
		   		location.hash = 'test='+ $(this).attr('lay-id');
		    });
		});
	</script>
</html>
